// samsting : this file is auto create.

#include "R-kvstore/2015-01-01/DescribeInstancesResponse.h"

namespace aliyun { namespace R_kvstore {

DescribeInstancesResponse::DescribeInstancesResponse() {
}

const string& DescribeInstancesResponse::KVStoreInstance::GetInstanceId(void) const {
  return InstanceId_;
}

const string& DescribeInstancesResponse::KVStoreInstance::GetInstanceName(void) const {
  return InstanceName_;
}

const string& DescribeInstancesResponse::KVStoreInstance::GetConnectionDomain(void) const {
  return ConnectionDomain_;
}

int64 DescribeInstancesResponse::KVStoreInstance::GetPort(void) const {
  return Port_;
}

const string& DescribeInstancesResponse::KVStoreInstance::GetUserName(void) const {
  return UserName_;
}

const string& DescribeInstancesResponse::KVStoreInstance::GetInstanceStatus(void) const {
  return InstanceStatus_;
}

const string& DescribeInstancesResponse::KVStoreInstance::GetRegionId(void) const {
  return RegionId_;
}

int64 DescribeInstancesResponse::KVStoreInstance::GetCapacity(void) const {
  return Capacity_;
}

int64 DescribeInstancesResponse::KVStoreInstance::GetQPS(void) const {
  return QPS_;
}

int64 DescribeInstancesResponse::KVStoreInstance::GetBandwidth(void) const {
  return Bandwidth_;
}

int64 DescribeInstancesResponse::KVStoreInstance::GetConnections(void) const {
  return Connections_;
}

const string& DescribeInstancesResponse::KVStoreInstance::GetZoneId(void) const {
  return ZoneId_;
}

const string& DescribeInstancesResponse::KVStoreInstance::GetConfig(void) const {
  return Config_;
}

const string& DescribeInstancesResponse::KVStoreInstance::GetChargeType(void) const {
  return ChargeType_;
}

const string& DescribeInstancesResponse::KVStoreInstance::GetCreateTime(void) const {
  return CreateTime_;
}

const string& DescribeInstancesResponse::KVStoreInstance::GetEndTime(void) const {
  return EndTime_;
}

const std::vector<DescribeInstancesResponse::KVStoreInstance>& DescribeInstancesResponse::GetInstances(void) const {
  return Instances_;
}

int DescribeInstancesResponse::GetPageNumber(void) const {
  return PageNumber_;
}

int DescribeInstancesResponse::GetPageSize(void) const {
  return PageSize_;
}

int DescribeInstancesResponse::GetTotalCount(void) const {
  return TotalCount_;
}

const char* DescribeInstancesResponse::BaseKey(void) {
  return "DescribeInstancesResponse";
}

void DescribeInstancesResponse::UnmarshallerMap(std::map<string, string>& response_map) {
  int Instances__length = 0;
  UnmarshallerInt(Instances__length, response_map, "DescribeInstancesResponse.Instances.Length");
  if(Instances__length >= 0) {
    Instances_.resize(Instances__length);
    for(int i1 = 0; i1 < Instances__length; i1++) {
      UnmarshallerString(Instances_[i1].InstanceId_, response_map, "DescribeInstancesResponse.Instances["+string_ValueOfInt(i1)+"].InstanceId");
      UnmarshallerString(Instances_[i1].InstanceName_, response_map, "DescribeInstancesResponse.Instances["+string_ValueOfInt(i1)+"].InstanceName");
      UnmarshallerString(Instances_[i1].ConnectionDomain_, response_map, "DescribeInstancesResponse.Instances["+string_ValueOfInt(i1)+"].ConnectionDomain");
      UnmarshallerInt64(Instances_[i1].Port_, response_map, "DescribeInstancesResponse.Instances["+string_ValueOfInt(i1)+"].Port");
      UnmarshallerString(Instances_[i1].UserName_, response_map, "DescribeInstancesResponse.Instances["+string_ValueOfInt(i1)+"].UserName");
      UnmarshallerString(Instances_[i1].InstanceStatus_, response_map, "DescribeInstancesResponse.Instances["+string_ValueOfInt(i1)+"].InstanceStatus");
      UnmarshallerString(Instances_[i1].RegionId_, response_map, "DescribeInstancesResponse.Instances["+string_ValueOfInt(i1)+"].RegionId");
      UnmarshallerInt64(Instances_[i1].Capacity_, response_map, "DescribeInstancesResponse.Instances["+string_ValueOfInt(i1)+"].Capacity");
      UnmarshallerInt64(Instances_[i1].QPS_, response_map, "DescribeInstancesResponse.Instances["+string_ValueOfInt(i1)+"].QPS");
      UnmarshallerInt64(Instances_[i1].Bandwidth_, response_map, "DescribeInstancesResponse.Instances["+string_ValueOfInt(i1)+"].Bandwidth");
      UnmarshallerInt64(Instances_[i1].Connections_, response_map, "DescribeInstancesResponse.Instances["+string_ValueOfInt(i1)+"].Connections");
      UnmarshallerString(Instances_[i1].ZoneId_, response_map, "DescribeInstancesResponse.Instances["+string_ValueOfInt(i1)+"].ZoneId");
      UnmarshallerString(Instances_[i1].Config_, response_map, "DescribeInstancesResponse.Instances["+string_ValueOfInt(i1)+"].Config");
      UnmarshallerString(Instances_[i1].ChargeType_, response_map, "DescribeInstancesResponse.Instances["+string_ValueOfInt(i1)+"].ChargeType");
      UnmarshallerString(Instances_[i1].CreateTime_, response_map, "DescribeInstancesResponse.Instances["+string_ValueOfInt(i1)+"].CreateTime");
      UnmarshallerString(Instances_[i1].EndTime_, response_map, "DescribeInstancesResponse.Instances["+string_ValueOfInt(i1)+"].EndTime");
    } // for(int i1 = 0; i1 < Instances__length; i1++) {
  } // if(Instances__length >= 0) {

  UnmarshallerInt(PageNumber_, response_map, "DescribeInstancesResponse.PageNumber");
  UnmarshallerInt(PageSize_, response_map, "DescribeInstancesResponse.PageSize");
  UnmarshallerInt(TotalCount_, response_map, "DescribeInstancesResponse.TotalCount");
}


} } // namespace aliyun { namespace R_kvstore {

// end of file 
